package cn.wx.remote;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 第三方接口天行数据
 */
@FeignClient(value = "TianDataRemoteClient", url = "${tianxin.server}")
public interface TianDataRemoteClient {
    /**
     * 获取彩虹屁
     */
    @GetMapping(value = "/caihongpi/index",
            consumes = { MediaType.APPLICATION_JSON_VALUE },
            produces = { MediaType.APPLICATION_JSON_VALUE }
    )
    String queryRainbow(@SpringQueryMap TianXinParam tianXinParam);

    /**
     * 获取优美的句子
     */
    @GetMapping(value = "/ensentence/index",
            consumes = { MediaType.APPLICATION_JSON_VALUE },
            produces = { MediaType.APPLICATION_JSON_VALUE }
    )
    String queryEnsentence(@SpringQueryMap TianXinParam tianXinParam);
}